aboutdialog: Set a style class
authorMatthias Clasen <mclasen@redhat.com>
Mon, 11 Jan 2021 21:48:06 +0000 (16:48 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 Jan 2021 22:46:55 +0000 (17:46 -0500)
Add the .aboutdialog style class to toplevel
widget of about dialogs, similar to what we
do for e.g. GtkAssistant.

gtk/gtkaboutdialog.c
gtk/ui/gtkaboutdialog.ui

index bff8e76432d119a2953601cb660c99acca8818c7..4cdee365758c086137fe574a152bc0c5e1e8472b 100644 (file)
  *                        "title", _("About ExampleCode"),
  *                        NULL);
  * ]|
+ *
+ * # CSS nodes
+ *
+ * GtkAboutDialog has a single CSS node with the name window and style
+ * class .aboutdialog.
+
  */
 
 typedef struct
index ab5fe44b32ad8414118e1fdf7bf45fb9a9826a6b..bd69376d6a0c40ec38f03e9653b62e54c7ce0c72 100644 (file)
@@ -2,6 +2,9 @@
 <interface domain="gtk40">
   <template class="GtkAboutDialog" parent="GtkWindow">
     <property name="resizable">0</property>
+    <style>
+      <class name="aboutdialog"/>
+    </style>
     <child type="titlebar">
       <object class="GtkHeaderBar" id="headerbar1">
         <child type="title">